

from sqlmodel import Field, Relationship, SQLModel,text

from .base import SQLModelBase
from .resBase import BaseResponse
class UniversityBase(SQLModel):
    name: str = Field(nullable=False, max_length=255, title="学校名称")
class University(SQLModelBase, UniversityBase,table=True):
    pass
    # 定义表参数
    __table_args__ = {'comment': '大学'}
   
class UniversityPublic(UniversityBase):
    id: int | None = Field(default=None, primary_key=True, title="主键", sa_column_kwargs={"comment": "主键"})



class UniversitysPublic(BaseResponse):
    data: list[University] | None  